import request from '#/utils/requestAbort.js';
import type { IEchartParamsType, IFormValue } from './type';

// 查询配置列表
export async function postQueryFilterNodeList(params: { provinceId?: string; marketId?: string }) {
  return request('/disclosure/bockPriceDiffPearson/queryFilterNodeList', {
    method: 'POST',
    data: params,
  });
}

// 通道阻塞引起价差统计列表
export async function postQueryPriceDiffList(params: IFormValue) {
  return request('/disclosure/bockPriceDiffPearson/queryPriceDiffList', {
    method: 'POST',
    data: params,
  });
}

// 价差相关情况-格子列表
export async function postQueryNodePriceSumGridList(params: IFormValue) {
  return request('/disclosure/bockPriceDiffPearson/queryNodePriceSumGridList', {
    method: 'POST',
    data: params,
  });
}

// 查询配置列表
export async function postQueryNodeStationList(params: {
  marketId?: string;
  provinceId?: string;
  checkPower?: boolean;
}) {
  return request('/generation-common/correlaNodeStationConfig/queryNodeStationList', {
    method: 'POST',
    data: params,
  });
}

//
export async function postQueryDoubleNodeBlockList(params: IEchartParamsType) {
  return request('/disclosure/bockPriceDiffPearson/queryDoubleNodeBlockList', {
    method: 'POST',
    data: params,
  });
}
